<template>
  <div class="lose-passwd">
    <nav-top title="忘记密码" :goback=true></nav-top>
    <div class="logo">
      <img src="/static/img/register-logo.png" />
    </div>
    <div class="form">
      <van-field class="input" v-model="phone" clearable type="tel" placeholder="请输入手机号">
        <img class="icon-img" src="/static/icon/phone.png" slot="left-icon" />
      </van-field>
      <van-field class="input" v-model="code" clearable placeholder="请输入验证码">
        <img class="icon-img" src="/static/icon/phone-code.png" slot="left-icon" />
        <van-button class="send-code" slot="button" size="small" type="primary">获取验证码</van-button>
      </van-field>
      <van-field class="input" v-model="passwd" clearable type="password" placeholder="请输入密码">
        <img class="icon-img" src="/static/icon/passwd.png" slot="left-icon" />
      </van-field>
      <van-field class="input" v-model="passwdAgain" clearable type="password" placeholder="请再次输入密码">
        <img class="icon-img" src="/static/icon/passwd.png" slot="left-icon" />
      </van-field>
      <van-button class="submit" type="primary" size="large">提交</van-button>
    </div>
  </div>
</template>

<script>
import NavTop from "@/components/nav/navBar";

export default {
  components: {
    NavTop
  },
  name: "LosePasswd",
  data() {
    return {
      phone: "",
      passwd: "",
      passwdAgain: "",
      code: ""
    };
  }
};
</script>
<style lang='scss' scoped>
.lose-passwd {
  height: 690px;
  .logo {
    text-align: center;
    position: relative;
    top: 97px;
    height: 0;
    img {
      width: 87px;
      height: 31px;
    }
  }
  .form {
    position: relative;
    top: 170px;
    padding-left: 21px;
    padding-right: 21px;
    .icon-img {
      width: 17px;
    }
    .input {
      position: relative;
      padding: 0px;
      padding-top: 15px;
      padding-bottom: 11px;
      border-bottom: 1px solid #ececec;
      font-size: 13px;
      line-height: 20px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      ::-webkit-input-placeholder {
        color: rgba(214, 214, 214, 1);
      }
      .send-code {
        height: 16px;
        line-height: 1px;
        font-size: 12px;
        background: #fff;
        color: #4d39c6;
        border: none;
      }
    }
    .submit {
      margin-top: 120px;
      height: 44px;
      font-size: 15px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(255, 255, 255, 1);
      line-height: 1px;
      background-color: #06a44f;
      border-color: #06a44f;
      border-radius: 2px;
    }
  }
}
</style>
